package cn.kgc.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.kgc.springboot.entity.Teacher;
import cn.kgc.springboot.service.TeacherService;
import cn.kgc.springboot.mapper.TeacherMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements TeacherService{

    @Autowired
    private  TeacherMapper teacherMapper;
    @Override
    public Teacher addTeacher(Teacher teacher) {
        teacherMapper.insert(teacher);

        return teacher;
    }
}




